class MultiTon {
  private static instanceList: Array<MultiTon> = (() => {
    let list: Array<MultiTon> = []
    for (let i = 0; i < 3; i++) {
      list.push(new MultiTon())
    }
    return list
  })()
  private constructor() { }

  static getInstance() {
    return MultiTon.instanceList[Math.floor(Math.random() * 3)]
  }
}

const install5 = MultiTon.getInstance()
const install6 = MultiTon.getInstance()
const install7 = MultiTon.getInstance()
const install8 = MultiTon.getInstance()
const install9 = MultiTon.getInstance()
const install10 = MultiTon.getInstance()
const install11 = MultiTon.getInstance()
const install12 = MultiTon.getInstance()
const install13 = MultiTon.getInstance()

console.log('install5===install6 :>> ', install5 === install6);
console.log('install5===install7 :>> ', install5 === install7);
console.log('install5===install8 :>> ', install5 === install8);
console.log('install5===install9 :>> ', install5 === install9);
console.log('install5===install10 :>> ', install5 === install10);
console.log('install5===install11 :>> ', install5 === install11);
console.log('install5===install12 :>> ', install5 === install12);
console.log('install5===install13 :>> ', install5 === install13);